package com.vip.test.mock;

import java.util.HashMap;

import org.apache.struts.action.DynaActionForm;

public class UnitTestDynaActionForm extends DynaActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3843930184427309255L;
	
	public HashMap<String,Object> property = null;
	
	public UnitTestDynaActionForm(){
		property=new HashMap<String, Object>();
	}

	/* (non-Javadoc)
	 * @see org.apache.struts.action.DynaActionForm#set(java.lang.String, java.lang.Object)
	 */
	@Override
	public void set(String name, Object value) {
		property.put(name, value);
	}

	/* (non-Javadoc)
	 * @see org.apache.struts.action.DynaActionForm#getString(java.lang.String)
	 */
	@Override
	public String getString(String name) {
		return (String)property.get(name);
	}

	/* (non-Javadoc)
	 * @see org.apache.struts.action.DynaActionForm#get(java.lang.String)
	 */
	@Override
	public Object get(String name) {
		return property.get(name);
	}

	
    
	
}
